﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WestWorldRemake.Messaging
{
    public class Messages
    {
        public class BaseMessage
        {
            private int id;
            private int NextId = 0;
            private string _Message;

            public BaseMessage(string message)
            {
                this.id = NextId++;
                _Message = message;
            }

            public string Message
            {
                get
                {
                    return _Message;
                }
            }
            public int ID
            {
                get
                {
                    return id;
                }
            }
            public bool IsOfType(Type t)
            {
                return (this.GetType() == t);
            }
        }

        public class HiHoneyImHome : BaseMessage
        {
            public HiHoneyImHome()
                : base("Hi Honey I'm Home")
            {
            }
        }

        public class StewReady : BaseMessage
        {
            public StewReady()
                : base("Stew's Ready!")
            {
            }
        }
    }
}
